package com.ntd.pushpush.api;

/**
 * Error code for {@link ApiResponse}.
 *
 */
public enum ApiErrorCode {
	/**
	 * success.
	 */
	NO_ERROR("sucess"),
	/**
	 * invalid parameter
	 */
	INVALID_PARAM("invalid_param"),
	/**
	 * server internal error
	 */
	SERVER_INTERNAL("server_internal"),
	/**
	 * server database error
	 */
	SERVER_DB("server_db"),
	// defined by client.
	/**
	 * gson convert error.
	 */
	GSON_ERROR("gson_error"),
	/**
	 * Unknown error.
	 */
	UNKNOWN("unknow_error"), ;

	private String errorCode;

	ApiErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorCode() {
		return errorCode;
	}
}
